package com.hgw.Demo03_DecoratorPattern.Exercises12_7_5;

/**
 * Data time:2021/12/14 19:47
 * StudentID:2019112118
 * Author:hgw
 * Description: 测试类
 */
public class CoffeeStore {

    public static void main(String[] args) {
        Beverage espresso,espressoMocha,espressoWhip,espressoMilk;

        espresso = new Espresso();
        espressoMocha = new Mocha(espresso);
        espressoWhip = new Whip(espressoMocha);
        espressoMilk = new Milk(espressoWhip);
        System.out.println(espressoMilk.getDescription() + " ¥" +espressoMilk.getCost());

    }
}
